package com.ctshk.rpc.order.airexpress.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 * 机场快线订单旅客信息
 * </p>
 *
 * @author 叶冠峰
 * @since 2021-02-23
 */
@Data
@ApiModel(value="AirportExpressOrderUpdateReq对象", description="机场快线订单旅客信息")
public class AirportExpressOrderUpdateReq implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "订单ID不能为空")
    @ApiModelProperty(value = "订单id")
    private Long id;

    @NotBlank(message = "联系人姓不能为空")
    @ApiModelProperty(value = "联系人姓")
    private String surname;

    @NotBlank(message = "联系人名不能为空")
    @ApiModelProperty(value = "联系人名")
    private String name;

    @NotBlank(message = "联系人手机不能为空")
    @ApiModelProperty(value = "联系人手机")
    private String contactMobile;

    @ApiModelProperty(value = "联系人手机区号id")
    private Long contactMobileAreaCodeId;

    @ApiModelProperty(value = "联系人手机区号")
    private String contactMobileAreaCode;

    @NotBlank(message = "邮箱不能为空")
    @ApiModelProperty(value = "联系人邮箱")
    private String contactEmail;

    @NotNull
    @Range(min=1,max = 2, message = "旅客性别值不正确，1:男,2:女")
    @ApiModelProperty(value = "性别")
    private Integer gender;

    @NotBlank(message = "联系人国籍不能为空")
    @ApiModelProperty(value = "联系人国籍ID", required = true)
    private String contactCountryId;

    @ApiModelProperty(value = "联系人国籍", required = true)
    private String contactCountryName;
}
